package website.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import website.advice.BaseResponse;
import website.domain.Photo;
import website.domain.Recall;
import website.domain.ResModel;
import website.service.PhotoService;
import website.service.RecallService;

import java.util.List;

@Api("回忆控制类")
@BaseResponse
@RestController
@RequestMapping("/api/recall")
public class RecallController {

    @Autowired
    private RecallService recallService;


    @ApiOperation("查询照片")
    @GetMapping
    public ResModel<List<Recall>> list(){
        return recallService.getList();
    }
}
